package thread.future;

import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;

public class FutureTaskFactory_ {

    /**
     * 创建Future任务
     * @param <T>
     * @return
     */
    public static <T> FutureTask<T> createFutureTask(Callable callable){
        FutureTask<T> futureTask = new FutureTask<T>(callable);
        return futureTask;
    }
}
